package day0927;

import java.util.*;

class Person{ int  idCard;  }

class MyComparator implements Comparator<Person> {
    public int compare(Person o1, Person o2) {
        return  o1.idCard-o2.idCard;
    }
}

public class S2 {
    public static void main(String[] args) {
        TreeSet<Person> room=new TreeSet(new MyComparator());
        Person  zs=new Person();   zs.idCard=61011118; room.add(zs);
        Person  ls=new Person();   ls.idCard=61011117; room.add(ls);
    }
}







